package com.rockcent.mall.lib.repository;

import com.rockcent.mall.lib.domain.MallOrder;
import com.rockcent.mall.lib.domain.MallOrderPayment;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

/**
 * Created by oyhk on 14-6-22.
 */
@Repository
public interface MallOrderPaymentRepository extends JpaRepository<MallOrderPayment, Long>, JpaSpecificationExecutor {

    MallOrderPayment findByMallOrderNumAndMallId(String mallOrderNum,Long mallId);

    MallOrderPayment findByPaymentNum(String paymentNum);

}
